/** 
 * api接口统一管理
 */
import axios from 'axios';
import { get, post } from './http';
// 封装登陆接口
export const apiLogin = p => get('Home/CheckLogin', p);
//患者列表
export const apiPatientList = p => get('Home/GetPatientList', p);
//获取当前登陆人的科室
export const apiDepartmentList = p => get('Home/GetDepartmentList', p);
//获取点击病人的基本信息
export const apiPatientInfoDetail = p => get('Home/GetPatientInfoDetail', p);
//获取患者基本信息的体征
export const apiPatientSigns = p => get('Home/GetPatientSigns',p);
//获取患者医嘱途径选择内容
export const apiMedicalOrderApproachList = p => get('ClinicalData/GetMedicalOrderApproachList', p);
//获取患者医嘱列表内容
export const apiMedicalOrderList = p => get('ClinicalData/GetMedicalOrderList', p);
//获取医嘱详情内容
export const apiOneMedicalOrder = p => get('ClinicalData/GetOneMedicalOrder', p);
//获取病历数据列表
export const apiCaseOfLllnessList = p => get('ClinicalData/GetCaseOfLllnessList', p);
//获取病历的搜索条件列表
export const apiCaseOfLllnessType = p => get('ClinicalData/GetCaseOfLllnessType', p);
//获取病历详情数据
export const apiCaseOfLllnessDetails = p => get('ClinicalData/GetCaseOfLllnessDetails', p);
//获取检验和检查报告列表
export const apiInspectionList = p => get('ClinicalData/GetInspectionList', p);
 //获取检验报告或者检查报告详情数据
export const apiInspectionDetails = p => get('ClinicalData/GetInspectionDetails', p);
//获取报告搜索提示数据
export const apiInspectionNames = p => get('/ClinicalData/GetInspectionNames', p);
 //获取报告里根据搜索条件找出的数据
export const apiInspectionItem = p => get('/ClinicalData/GetInspectionItem', p);
//获取报告里指标项对比之后的数据
export const apiInspectionComparison = p => get('/ClinicalData/GetInspectionComparison', p);
//查询当前医生记录下的患者指标分组（从数据库查询）
export const apiGetReportComparison = p => get('/ClinicalData/GetReportComparison', p);
//添加指标对比组（把前台选择的指标对比存入数据库）
export const apiAddReportComparison = p => get('/ClinicalData/AddReportComparison', p);
//编辑指标对比组（把前台选择的指标对比存入数据库）
export const apiEditReportComparison = p => get('/ClinicalData/EditReportComparison', p);
//删除当前医生所记录的指标组
export const apiDelReportComparison = p => get('/ClinicalData/DelReportComparison', p);
//获取体征列表数据
export const apiSigns = p => get('ClinicalData/GetSigns', p);
// 体征导出
export const exportG = p => axios.defaults.baseURL + '/ClinicalData/ExportSigns' + p;
// 报告比对导出
export const exportB = p => axios.defaults.baseURL + '/ClinicalData/ExportInspectionComparison' + p;
//获取事件列表数据
export const apiEventList = p => get('ClinicalData/GetEventList', p);
//获取单个事件数据
export const apiEventById = p => get('ClinicalData/GetEventById', p);
//事件信息新增编辑
export const apiEventEditOrAdd = p => get('ClinicalData/AddOrEditEvent', p);
//事件删除
export const apiEventDelete = p => get('ClinicalData/DeleteEvent', p);
//事件里获取患者的指标
export const apiGetReportEvent = p => get('ClinicalData/GetReportEvent', p);
//获取体征IO和呼吸列表
export const apiSignsIO = p => get('ClinicalData/GetIOSignsList', p);
//获取患者手术信息数据
export const apiGetOperationMessage = p => get('ClinicalData/GetOperationMessage', p);
//获取患者呼吸，体温，心率，脉搏等体征状态的列表
export const apiSignsStatusList = p => get('ClinicalData/GetSignsStatusList', p);
//获取患者评分
export const apiPatinetScore = p => get('ClinicalData/GetPatinetScore', p);
//获取病情统计数据
export const apiPatientTypeStatisticList = p => get('DataStatistic/GetPatientTypeStatisticList', p);
//获取病情分布详情数据
export const apiPatientSicknessList = p => get('DataStatistic/GetPatientSicknessList', p);
//获取评分总数时间轴数据
export const apiApacheScoreStatisticList = p => get('DataStatistic/GetApacheScoreStatisticList', p);
//获取评分单项的数据
export const apiPatientScoreList = p => get('/Home/GetPatientScoreList', p);
//获取患者信息统计数据
export const apiGetPatientInformationStatistic = p => get('DataStatistic/GetPatientInformationStatistic', p);
//获取特护单信息
export const apiNursingSheet = p => get('ClinicalData/GetNursingSheet', p);
//首页获取特护单信息
export const apiNursingSheetOne = p => get('ClinicalData/GetNursingSheetOne', p);
//修改密码接口
export const apiModifyPwd = p => get('Home/ModifyPwd', p);
//修改密码比对原密码
export const apiIsUserPwd = p => get('Home/IsUserPwd', p);
//查询质控信息数据列表
export const apiGetCCQCReportList = p => get('CCQCReport/GetCCQCReportList', p);
//查询特定质控信息数据
export const apiGetCCQCReport = p => get('CCQCReport/GetCCQCReport', p);
//保存质控信息数据
export const apiNewQCReport = p => get('CCQCReport/NewQCReport', p);
//编辑质控信息数据
export const apiUpdateQCReport = p => get('CCQCReport/UpdateQCReport', p);
//查询某患者某一天的交班信息
export const apiGetPatientRecordInfo = p => get('PatientRecord/GetPatientRecordInfo', p);
//调取后台 的更新最新那一天的交班信息（当天）
export const apiSynPatientRecord = p => get('PatientRecord/SynPatientRecord', p);
//查询某患者的病程日志信息
export const apiGettPatientRecordListByPatientId = p => get('PatientRecord/GettPatientRecordListByPatientId', p);
//保存交班信息接口0
export const apiAddPatientRecordInfo = p => post('PatientRecord/AddPatientRecordInfo', p);
//保存交班信息接口A
export const apiAddPatientRecordInfoPlanA = p => post('PatientRecord/AddPatientRecordInfoPlanA', p);
//保存交班信息接口B
export const apiAddPatientRecordInfoPlanB = p => post('PatientRecord/AddPatientRecordInfoPlanB', p);
//保存交班信息接口C
export const apiAddPatientRecordInfoPlanC = p => post('PatientRecord/AddPatientRecordInfoPlanC', p);
//交班日志----按日期获取交班记录列表
export const apiGetPatientShiftLogsByDate = p => get('PatientShiftLog/GetPatientShiftLogsByDate', p);
//交班日志----新增交班记录列表
export const apiAddShiftLog = p => get('PatientShiftLog/AddShiftLog', p);
//交班日志----按ID获取交班记录详情
export const apiGetPatientShiftLogById = p => get('PatientShiftLog/GetPatientShiftLogById', p);
//交班日志----保存填写的交班记录
export const apiUpdateShiftLog = p => post('PatientShiftLog/UpdateShiftLog', p);
//交班日志----更新单个交班记录
export const apiUploadShiftLog = p => get('PatientShiftLog/UploadShiftLog', p);
//临时用户-用户列表
export const apiGetInternList = p => get('Home/GetInternList', p);
//临时用户-新增用户
export const apiAddIntern = p => get('Home/AddIntern', p);
//临时用户-判断用户名是否重复
export const apiGetIsRedundant = p => get('Home/GetIsRedundant', p);
//临时用户-查询用户（单个）
export const apiGetOneIntern = p => get('Home/GetOneIntern', p);
//临时用户-删除用户（单个）
export const apiDeleteItern = p => get('Home/DeleteItern', p);
//添加病例收藏
export const apiAddPatientTags = p => get('PatientTags/AddPatientTags', p);
//删除病例收藏
export const apiDeletePatientTags = p => get('PatientTags/DeletePatientTags', p);
//保存新增mews评分
export const apiAddOrUpdatePatientMewsScore = p => get('PatientMewsScore/AddOrUpdatePatientMewsScore', p);
//查询mews评分(所有)
export const apiGetMewsScoreListByTime = p => get('PatientMewsScore/GetMewsScoreListByTime', p);
//查询mews评分（单个）
export const apiGetMewsScoreByID = p => get('PatientMewsScore/GetMewsScoreByID', p);
//查询mews评分里的患者体征
export const apiGetVisit = p => get('PatientMewsScore/GetVisit', p);
//删除mews评分（单个）
export const apiDeletePatientMewsScore = p => get('PatientMewsScore/DeletePatientMewsScore', p);
